<?php
/**
 * Created by PhpStorm.
 * User: Jan-Home
 * Date: 2018/4/5 0005
 * Time: 19:45
 */

namespace Gitee\GiteeAPI;


class RepoAPI extends CoreAPI
{
	
	public function info($owner, string $repo)
	{
		$owner = OrgAPI::filterOrgName($owner, 1);
		return $this->request("repos/{$owner}/{$repo}");
	}
	
	public function issues($owner, string $repo)
	{
		$owner = OrgAPI::filterOrgName($owner, 1);
		return $this->request("repos/{$owner}/{$repo}/issues");
	}
}